import request from "@/utils/request";

// 查询规则用户对应列表
export function listBizPushRuleUser(query) {
  return request({
    url: "/biz/bizPushRuleUser/list",
    method: "get",
    params: query,
  });
}

// 查询规则用户对应详细
export function getBizPushRuleUser(id) {
  return request({
    url: "/biz/bizPushRuleUser/" + id,
    method: "get",
  });
}

// 新增规则用户对应
export function addBizPushRuleUser(data) {
  return request({
    url: "/biz/bizPushRuleUser",
    method: "post",
    data: data,
  });
}

// 修改规则用户对应
export function updateBizPushRuleUser(data) {
  return request({
    url: "/biz/bizPushRuleUser",
    method: "put",
    data: data,
  });
}

// 删除规则用户对应
export function delBizPushRuleUser(id) {
  return request({
    url: "/biz/bizPushRuleUser/" + id,
    method: "delete",
  });
}

// 查询最大编号
export function findMaxSort() {
  return request({
    url: "/biz/bizPushRuleUser/findMaxSort",
    method: "get",
  });
}
// 导出规则用户对应
export function exportBizPushRuleUser(query) {
  return request({
    url: "/biz/bizPushRuleUser/export",
    method: "get",
    params: query,
  });
}

// 根据用户id获取分配用户（用于初始化）
export function getListByUserIds(query) {
  return request({
    url: "/biz/bizPushRuleUser/getListByUserIds?ids=" + query,
    method: "get",
  });
}

// 查询用户外链规则用户列表
export function findUserJoinRuleList(query) {
  return request({
    url: "/biz/bizPushRuleUser/findUserJoinRuleList",
    method: "get",
    params: query,
  });
}
// 修改接单状态
export function changeWorkingPushRuleUser(data) {
  return request({
    url: "/biz/bizPushRuleUser/changeWorkingPushRuleUser",
    method: "post",
    data: data,
  });
}
